Select the .ext or .res file in which you want to install Soundex.
Click transfer.
Accept the defaults, Segment 1, Offset 4.
Click on the String parameter. This is the only parameter required.
Close and Quit.
Now Soundex is installed and ready to be used.
To call soundex, you pass a string containing the name and the Soundex code is returned in the same variable that was sent.
myvar:="Todd"
Soundex(myvar)
`Now myvar contains the Soundex code for "Todd"
To allow very fast searches with Soundex, it is best to create a field, make it indexed, and then in the after phase of the input layout, call Soundex and store the returned code in the indexed field.
When using Soundex, you must make a good guess at the name for which you are searching AND you must have the first character correct.
Here's how the routine works:
First character is preserved.
All characters are assigned a value.
Wherever a sound code is next to the same code, remove one of them.
Strip all vowels. (I assign vowels to be code zero)